using Baci.Net.ToolKit.ArcGISProGeoprocessor.Models;
using Baci.Net.ToolKit.ArcGISProGeoprocessor.Models.Attributes;
using Baci.Net.ToolKit.ArcGISProGeoprocessor.Models.Attributes.DomainAttributes;
using Baci.Net.ToolKit.ArcGISProGeoprocessor.Models.Enums;
using System.Collections.Generic;
using System.ComponentModel;

namespace Baci.ArcGIS._DataManagementTools._Subtypes
{
    /// <summary>
    /// <para>Remove Subtype</para>
    /// <para>Removes a subtype from the input table using its code.</para>
    /// <para>使用子类型的代码从输入表中删除子类型。</para>
    /// </summary>    
    [DisplayName("Remove Subtype")]
    public class RemoveSubtype : AbstractGPProcess
    {
        /// <summary>
        /// 无参构造
        /// </summary>
        public RemoveSubtype()
        {

        }

        /// <summary>
        /// 有参构造
        /// </summary>
        /// <param name="_in_table">
        /// <para>Input Table</para>
        /// <para>The feature class or table containing the subtype definition.</para>
        /// <para>包含子类型定义的要素类或表。</para>
        /// </param>
        /// <param name="_subtype_code">
        /// <para>Subtype Code</para>
        /// <para>The subtype code to remove a subtype from the input table or feature class.</para>
        /// <para>用于从输入表或要素类中移除子类型的子类型代码。</para>
        /// </param>
        public RemoveSubtype(object _in_table, List<object> _subtype_code)
        {
            this._in_table = _in_table;
            this._subtype_code = _subtype_code;
        }
        public override string ToolboxName => "Data Management Tools";

        public override string ToolName => "Remove Subtype";

        public override string CallName => "management.RemoveSubtype";

        public override List<string> AcceptEnvironments => ["autoCommit", "workspace"];

        public override object[] ParameterInfo => [_in_table, _subtype_code, _out_table];

        /// <summary>
        /// <para>Input Table</para>
        /// <para>The feature class or table containing the subtype definition.</para>
        /// <para>包含子类型定义的要素类或表。</para>
        /// <para></para>
        /// </summary>
        [DisplayName("Input Table")]
        [Description("")]
        [Option(OptionTypeEnum.Must)]
        public object _in_table { get; set; }


        /// <summary>
        /// <para>Subtype Code</para>
        /// <para>The subtype code to remove a subtype from the input table or feature class.</para>
        /// <para>用于从输入表或要素类中移除子类型的子类型代码。</para>
        /// <para></para>
        /// </summary>
        [DisplayName("Subtype Code")]
        [Description("")]
        [Option(OptionTypeEnum.Must)]
        public List<object> _subtype_code { get; set; }


        /// <summary>
        /// <para>Updated Input Table</para>
        /// <para></para>
        /// <para></para>
        /// <para></para>
        /// </summary>
        [DisplayName("Updated Input Table")]
        [Description("")]
        [Option(OptionTypeEnum.derived)]
        public object _out_table { get; set; }


        public RemoveSubtype SetEnv(int? autoCommit = null, object workspace = null)
        {
            base.SetEnv(autoCommit: autoCommit, workspace: workspace);
            return this;
        }

    }

}